import crvRequest from '@/api'
import { IAccount, ILoginResult } from './type'
import { IBaseResponse } from '@/api/type'

export function login(data: IAccount) {
  return crvRequest.post<IBaseResponse<ILoginResult>>({
    data: data,
    url: '/login'
  })
}
